const navBox = document.querySelector('.s_1')
const ID = window.localStorage.getItem('id')

    const fy = new XMLHttpRequest()
    fy.open('GET','/fy?id=' + ID + '&title=%E6%95%B0%E7%A0%81%E5%BD%B1%E9%9F%B3')

    fy.onload = function () {
        console.log(123);
        const res = JSON.parse(fy.responseText)
        console.log(res)
        let str = ''

            str += `
            <span class="s_1">${ res.product.name }</span>
            `

        navBox.innerHTML = str
    }

    fy.send()
